package Class.Advance.MethodReference.ReferStaticMethod;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Example {
    public static void main(String[] args) {
        ArrayList<String> stringList = new ArrayList<>();
        Collections.addAll(stringList, "1", "2", "3", "4", "5");
        List<Integer> intList = stringList.stream().map(Integer::parseInt).toList();
        System.out.println(intList);
    }
}
